package com.pozu.new_retail.dao.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.pozu.new_retail.dao.model.Order;

public interface OrderMapper {
	
	//public String queryCodeByUserId(long userId);
	
	public int queryOrderCountByMap(HashMap<String, Object> map);
	
	public Order queryByOrderId(String orderId);
	
	public Order queryByPrepayId(String prepayId);
	
	public List<Order> queryByUserId(String userId);
	
	public int insertOrder(Order order);
	
	public int updateOrder(Order order);
	
	public List<Order> queryByMap(Map<String, Object> map);
	
	public int queryCountByGoodsId(int goodsId);
	
	public List<Order> queryRefundByMap(Map<String, Object> map);
	
	public int queryCountByOrderId(String orderId);

}
